import os

path = '/Users/cai/Documents/sxw/sxw/apk/pad'
names = os.listdir(path)
targetpath = "%s/%s" % (path, "test")
if not os.path.exists(targetpath):
    os.makedirs(targetpath)
for name in names:
    if name.startswith('.'):
        continue
    if name.endswith('V'):
        continue
    print(name)
    oldname = "%s/%s" % (path, name)
    newname = "%s/%s" % (targetpath, name)
    os.rename(oldname, newname)
